package game.logic;

import game.util.ColorAdapter;

public class BlockPoint implements Comparable<BlockPoint>{
	public int x,y;
	public ColorAdapter color;
	public BlockPoint(int x,int y) {
		 this.x = x;
		 this.y = y;
	}
	@Override
	public int compareTo(BlockPoint bp) {
		if(this.y > bp.y)
			return -1;
		else if(this.y < bp.y)
			return 1;
		else {
			if(this.x < bp.x)
				return -1;
			else if(this.x > bp.x)
				return 1;
			else 
				return 0;
		}
	}
}
